home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / GameboyDev / GBDK / include / time.h < prev    next >
C/C++ Source or Header  |  1999-03-29  |  489b  |  28 lines

  1. /*
  2.   time.h
  3.  
  4.   Simple, not completly conformant implementation of time routines
  5. */
  6.  
  7. #ifndef __TIME_H
  8. #define __TIME_H
  9.  
  10. #include <types.h>
  11.  
  12. /* The data types */
  13. typedef UWORD    clock_t;
  14. typedef UWORD    time_t;
  15.  
  16. /* Run of the VBL interrupt so rate is 60/sec */
  17. #define CLK_TCK        60
  18. #define CLOCKS_PER_SEC    60
  19.  
  20. /* Returns time since turn on */
  21. clock_t clock(void);
  22.  
  23. /* Returns time since turn on in seconds */
  24. /* If t != NULL, is also stored in *t */
  25. time_t time(time_t *t);
  26.  
  27. #endif /* __TIME_H */
  28.